package com.xsound.dp15.bluetooothmonitor.custom;

import android.app.Dialog;
import android.content.Context;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.Window;
import android.widget.Button;
import android.widget.EditText;

import com.xsound.dp15.bluetooothmonitor.R;

/**
 * Created by DP15 on 16-3-12.
 */
public class settimeDialog extends Dialog{
    private Context context;
    private Button cancellButton;
    private EditText timeEditText;

    public settimeDialog(Context context) {
        super(context);
        this.context = context;
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
   //     requestWindowFeature(Window.FEATURE_NO_TITLE);
        LayoutInflater inflater = LayoutInflater.from(context);
        View view = inflater.inflate(R.layout.setdiscoverabletime_dialog, null);

//        setContentView(R.layout.setdiscoverabletime_dialog);
        setContentView(view);
        cancellButton=(Button)view.findViewById(R.id.positiveButton);

        cancellButton.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                dismiss();
            }
        });



    }
}
